
package com.jims.master.modules.doctor.entity;

import com.jims.master.modules.oper.entity.PriceList;
import org.hibernate.validator.constraints.Length;

import com.jims.master.common.persistence.DataEntity;

/**
 * 门诊项目明细Entity
 * @author CTQ
 * @version 2017-03-13
 */
public class ClinicOrdersCost extends DataEntity<ClinicOrdersCost> {
	
	private static final long serialVersionUID = 1L;
	private String clinicId;		// 门诊记录]
	private String patientId;		// 病人信息Id
	private String ordersId;		// orders_id
	private String itemClass;		// 项目类型
	private String itemName;		// 项目名称
	private String itemCode;		// 项目编码
	private String priceId;		// 价表ID
	private Double price;//单价
	private Double costs;//实收
	private Double charges;//实收
	private Double num;		// 项目数量
	private String rcptNo;		// 收费号
	private String classOnReckoning;		// 核算项目科目
	private String subjCode;		// 会计科目
	private Double coefficient;		// 收费系数
	private String spec;		// 规格
	private String unit;		// 单位
    private String isUpload; //医保是否上传 1上传 0未上传

	private PriceList priceList;
	
	public ClinicOrdersCost() {
		super();
	}

	public ClinicOrdersCost(String id){
		super(id);
	}

	@Length(min=1, max=64, message="门诊记录长度必须介于 1 和 64 之间")
	public String getClinicId() {
		return clinicId;
	}

	public void setClinicId(String clinicId) {
		this.clinicId = clinicId;
	}
	
	@Length(min=1, max=64, message="病人信息Id长度必须介于 1 和 64 之间")
	public String getPatientId() {
		return patientId;
	}

	public void setPatientId(String patientId) {
		this.patientId = patientId;
	}
	
	@Length(min=1, max=64, message="orders_id长度必须介于 1 和 64 之间")
	public String getOrdersId() {
		return ordersId;
	}

	public void setOrdersId(String ordersId) {
		this.ordersId = ordersId;
	}
	
	@Length(min=1, max=1, message="项目类型长度必须介于 1 和 1 之间")
	public String getItemClass() {
		return itemClass;
	}

	public void setItemClass(String itemClass) {
		this.itemClass = itemClass;
	}
	
	@Length(min=1, max=100, message="项目名称长度必须介于 1 和 100 之间")
	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}
	
	@Length(min=0, max=100, message="项目编码长度必须介于 0 和 100 之间")
	public String getItemCode() {
		return itemCode;
	}

	public void setItemCode(String itemCode) {
		this.itemCode = itemCode;
	}
	
	@Length(min=1, max=64, message="价表ID长度必须介于 1 和 64 之间")
	public String getPriceId() {
		return priceId;
	}

	public void setPriceId(String priceId) {
		this.priceId = priceId;
	}
	
	@Length(min=1, max=11, message="项目数量长度必须介于 1 和 11 之间")
	public Double getNum() {
		return num;
	}

	public void setNum(Double num) {
		this.num = num;
	}
	
	@Length(min=0, max=200, message="收费号长度必须介于 0 和 200 之间")
	public String getRcptNo() {
		return rcptNo;
	}

	public void setRcptNo(String rcptNo) {
		this.rcptNo = rcptNo;
	}
	
	@Length(min=1, max=10, message="核算项目科目长度必须介于 1 和 10 之间")
	public String getClassOnReckoning() {
		return classOnReckoning;
	}

	public void setClassOnReckoning(String classOnReckoning) {
		this.classOnReckoning = classOnReckoning;
	}
	
	@Length(min=1, max=10, message="会计科目长度必须介于 1 和 10 之间")
	public String getSubjCode() {
		return subjCode;
	}

	public void setSubjCode(String subjCode) {
		this.subjCode = subjCode;
	}
	
	public Double getCoefficient() {
		return coefficient;
	}

	public void setCoefficient(Double coefficient) {
		this.coefficient = coefficient;
	}
	
	@Length(min=0, max=20, message="规格长度必须介于 0 和 20 之间")
	public String getSpec() {
		return spec;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}
	
	@Length(min=0, max=20, message="单位长度必须介于 0 和 20 之间")
	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public PriceList getPriceList() {
		return priceList;
	}

	public void setPriceList(PriceList priceList) {
		this.priceList = priceList;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Double getCosts() {
		return costs;
	}

	public void setCosts(Double costs) {
		this.costs = costs;
	}

	public Double getCharges() {
		return charges;
	}

	public void setCharges(Double charges) {
		this.charges = charges;
	}

    public String getIsUpload() {
        return isUpload;
    }

    public void setIsUpload(String isUpload) {
        this.isUpload = isUpload;
    }
}